package org.huntaway.entity.impl;

import static javax.persistence.GenerationType.IDENTITY;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;

import org.huntaway.entity.BaseEntity;

public class CommonEntity implements BaseEntity {
	private int id;
	private int version;
	private String insertUser;
	private Date insertTime;
	private String updateUser;
	private Date updateTime;
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	@Column(name = "VERSION", unique = true, nullable = false, length = 10)
	public int getVersion() {
		return version;
	}
	public void setVersion(int version) {
		this.version = version;
	}
	@Column(name = "INSERT_USER", unique = true, nullable = false, length = 10)
	public String getInsertUser() {
		return insertUser;
	}
	public void setInsertUser(String insertUser) {
		this.insertUser = insertUser;
	}
	@Column(name = "INSERT_TIME", unique = true, nullable = false)
	public Date getInsertTime() {
		return insertTime;
	}
	public void setInsertTime(Date insertTime) {
		this.insertTime = insertTime;
	}
	@Column(name = "UPDATE_USER", unique = true, nullable = false, length = 10)
	public String getUpdateUser() {
		return updateUser;
	}
	public void setUpdateUser(String updateUser) {
		this.updateUser = updateUser;
	}
	@Column(name = "UPDATE_TIME", unique = true, nullable = false)
	public Date getUpdateTime() {
		return updateTime;
	}
	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}
	
}
